var window = new Object();
var navigator = new Object();
navigator.userAgent ="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36";
window.navigator = navigator;

var document = new Object();


console.log(window.navigator.userAgent)
var securityPageName = "securityCheck";
!function () {
    function e(c) {
        var l, m, n, o, p, q, r, e = function () {
            var a = location.hostname;
            return "localhost" === a || /^(\d+\.){3}\d+$/.test(a) ? a : "." + a.split(".").slice(-2).join(".")
        }(),
            f = function (a, b) {
                var f = document.createElement("script");
                f.setAttribute("type", "text/javascript"), f.setAttribute("charset", "UTF-8"), f.onload = f.onreadystatechange = function () {
                    d && "loaded" != this.readyState && "complete" != this.readyState || b()
                }, f.setAttribute("src", a), "IFRAME" != c.tagName ? c.appendChild(f) : c.contentDocument ? c.contentDocument.body ? c.contentDocument.body.appendChild(f) : c.contentDocument.documentElement.appendChild(f) : c.document && (c.document.body ? c.document.body.appendChild(f) : c.document.documentElement.appendChild(f))
            },
            g = function (a) {
                var b = new RegExp("(^|&)" + a + "=([^&]*)(&|$)"),
                    c = window.location.search.substr(1).match(b);
                return null != c ? unescape(c[2]) : null
            },
            h = {
                get: function (a) {
                    var b, c = new RegExp("(^| )" + a + "=([^;]*)(;|$)");
                    return (b = document.cookie.match(c)) ? unescape(b[2]) : null
                },
                set: function (a, b, c, d, e) {
                    var g, f = a + "=" + encodeURIComponent(b);
                    c && (g = new Date(c).toGMTString(), f += ";expires=" + g), f = d ? f + ";domain=" + d : f, f = e ? f + ";path=" + e : f, document.cookie = f
                }
            },
            i = function (a) {
                if (a) {
                    window.location.replace(a)
                }
            },
            j = function (a, c) {
                c || a.indexOf("security-check.html") > -1 ? i(c) : i(a);
            };
        window.location.href, l = g("seed") || "", m = g("ts"), n = g("name"),
            o = g("callbackUrl"),
            p = g("srcReferer") || "", "null" !== n && l && n && o, l && m && n && (f("dist/" + n + ".js", function () {
                var n, a = (new Date).getTime() + 1728e5,
                    d = "",
                    f = {},
                    g = window.gt || c.contentWindow.gt;
                try {
                    d = (new g()).a();
                } catch (k) { console.log(k) }
                if (d) {
                    (h.set("__lg_stoken__", d, a, e, "/"), j(p, o))
                }
            }))
    }
    // function j(a) {
    //     if (!f && !g && document.addEventListener) return document.addEventListener("DOMContentLoaded", a, !1);
    //     if (!(h.push(a) > 1))
    //         if (f) ! function () {
    //             try {
    //                 document.documentElement.doScroll("left"), i()
    //             } catch (a) {
    //                 setTimeout(arguments.callee, 0)
    //             }
    //         }();
    //         else if (g) var b = setInterval(function () {
    //             /^(loaded|complete)$/.test(document.readyState) && (clearInterval(b), i())
    //         }, 0)
    // }

    var d, f, g, h, i, a = 0,
        b = (new Date).getTime(),
        c = window.navigator.userAgent;
    c.indexOf("MSIE ") > -1 && (d = !0),
        f = false,
        g = /webkit\/(\d+)/i.test(navigator.userAgent) && RegExp.$1 < 525,
        h = [],
        i = function () {
            for (var a = 0; a < h.length; a++) h[a]()
        };
    j(function () {
        var b, a = window.navigator.userAgent.toLowerCase();
        return "micromessenger" !== a.match(/micromessenger/i) || "wkwebview" == a.match(/wkwebview/i) ?
            (e(document.getElementsByTagName("head").item(0)), void 0)
            :
            (b = document.createElement("iframe"), b.style.height = 0, b.style.width = 0, b.style.margin = 0, b.style.padding = 0, b.style.border = "0 none", b.name = "tokenframe", b.src = "about:blank", b.attachEvent ? b.attachEvent("onload", function () {
                e(b)
            }) : b.onload = function () {
                e(b)
            }, (document.body || document.documentElement).appendChild(b), void 0)
    })
}();